package com.realone.packman.codec;

/**
 * BMS 编、解码常量
 *
 * @author hugx
 * @create 2018-09-17 14:05
 */
public class BmsCodecConstant {

    public static final byte Req_Cmd_0x00 = 0x00;  //获取BMS所有状态和数据
    public static final byte Res_Cmd_0x10 = 0x10;  //获取BMS所有状态和数据

    public static final byte Req_Cmd_0x01 = 0x01;  //获取BMS电压
    public static final byte Res_Cmd_0x11 = 0x11;  //获取BMS电压

    public static final byte Req_Cmd_0x02 = 0x02;  //获取BMS电流
    public static final byte Res_Cmd_0x12 = 0x12;  //获取BMS电流

    public static final byte Req_Cmd_0x03 = 0x03;  //获取BMS容量
    public static final byte Res_Cmd_0x13 = 0x13;  //获取BMS容量

    public static final byte Req_Cmd_0x04 = 0x04;  //获取BMS温度
    public static final byte Res_Cmd_0x14 = 0x14;  //获取BMS温度

    public static final byte Req_Cmd_0x05 = 0x05;  //获取BMS湿度
    public static final byte Res_Cmd_0x15 = 0x15;  //获取BMS湿度

    public static final byte Req_Cmd_0x06 = 0x06;  //设置BMS放电参数
    public static final byte Res_Cmd_0x16 = 0x16;  //设置BMS放电参数

    public static final byte Req_Cmd_0x07 = 0x07;  //设置BMS充电参数
    public static final byte Res_Cmd_0x17 = 0x17;  //设置BMS充电参数

    public static final byte Req_Cmd_0x08 = 0x08;  //设置BMS系统参数
    public static final byte Res_Cmd_0x18 = 0x18;  //设置BMS系统参数

    public static final byte Req_Cmd_0x09 = 0x09;  //参数配置管理
    public static final byte Res_Cmd_0x19 = 0x19;  //参数配置管理

    public static final byte Req_Cmd_0x0a = 0x0a;  //进入升级状态
    public static final byte Res_Cmd_0x1a = 0x1a;  //进入升级状态

    public static final byte Req_Cmd_0x0b = 0x0b;  //开始升级
    public static final byte Res_Cmd_0x1b = 0x1b;  //开始升级

    public static final byte Req_Cmd_0x0c = 0x0c;  //获取BMS保护参数
    public static final byte Res_Cmd_0x1c = 0x1c;  //获取BMS保护参数

    public static final byte Req_Cmd_0x0d = 0x0d;  //获取BMS系统参数
    public static final byte Res_Cmd_0x1d = 0x1d;  //获取BMS系统参数

    public static final byte Res_Cmd_0x20 = 0x20;  //0x20-0x2F：告警帧
    public static final byte Res_Cmd_0xFF = (byte) 0xFF;  //错误应答

}
